package com.bjc.principle.decorator;

/**
 * @program: DesignPattern
 * @description:
 * @author: bjc
 * @create: 2020-12-30 18:30
 */
public class FlyCar implements Car{
    @Override
    public void show() {
        this.run();
        this.fly();
    }

    public void run(){
        System.out.println("可以跑");
    }

    public void fly(){
        System.out.println("可以飞");
    }
}
